package com.example.springioc.DI;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;

@Controller
public class UserControllerDI2 {
    private UserServiceDI userServiceDI;
    public UserControllerDI2(){

    }
    @Autowired
    public UserControllerDI2(UserServiceDI userServiceDI){
        this.userServiceDI=userServiceDI;
    }

    public void start(){
        userServiceDI.start();
    }
}
